#include <stdio.h>

int main()
{
    int nums[] = {2,7,11,15};
    int sz = sizeof(nums) / sizeof(nums[0]);
    int target = 0;//mu biao
    scanf("%d",&target);

    for (int i = 0; i < sz; i++){
        for (int j = 0; j < sz; j++){
            nums[i] + nums[j] == target;
            printf("%d %d \n",i,j);
        }
    }
    


    return 0;
}